//package com.gf.dynamicdemo.entity;
//
//import com.baomidou.mybatisplus.annotation.TableField;
//import com.baomidou.mybatisplus.annotation.TableName;
//import com.fasterxml.jackson.annotation.JsonIgnore;
////import com.gf.dynamicdemo.convert.DynamicTranlator;
//import com.gf.framework.mysql.entity.BaseEntity;
//import com.gf.framework.web.annotation.Translate;
//import io.swagger.annotations.ApiModelProperty;
//import lombok.Data;
//import lombok.EqualsAndHashCode;
//
//import java.io.Serializable;
//
///**
// * @author gaofei
// * @date 2022/6/10 20:18
// * 实体类
// */
//@EqualsAndHashCode(callSuper = false)
//@Data
//@TableName("dynamicconfig")
//public class DynamicConfig extends BaseEntity implements Serializable {
//    @ApiModelProperty("配置名")
//    private String name;
//
//    @ApiModelProperty("配置类型")
//    private String configType;
//
//    @JsonIgnore
//    @ApiModelProperty("存储在数据库里面的config 字符串")
//    private String configStr;
//
//    /**
//     * 不存数据库，用configStr存数据库
//     */
//    @TableField(exist = false)
//    @ApiModelProperty("数组配置")
//    @Translate(translator = DynamicTranlator.class, dataSource = ArrayConfig.class, from = "this", param = "arrayConfig")
//    private ArrayConfig arrayConfig;
//
//    @Translate(translator = DynamicTranlator.class, dataSource = NumberConfig.class, from = "this", param = "numberConfig")
//    @TableField(exist = false)
//    @ApiModelProperty("数字类型的配置")
//    private NumberConfig numberConfig;
//
//    @Translate(translator = DynamicTranlator.class, dataSource = EnumConfig.class, from = "this", param = "enumConfig")
//    @TableField(exist = false)
//    @ApiModelProperty("enum类型")
//    private EnumConfig enumConfig;
//}
